﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Help.Master" Inherits="System.Web.Mvc.ViewPage<dbPoll_Application.ViewModels.HelpViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Help
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MenuContent" runat="server">

    <%=Ajax.ActionLink("Home", "", "Help", new { id = "?page=home_index"}, new AjaxOptions() { UpdateTargetId = "Content3" })%><br />
    <%=Ajax.ActionLink("Managing Your Account", "", "Help", new { id = "?page=account_myaccount" }, new AjaxOptions() { UpdateTargetId = "Content3" })%><br />
    <%=Ajax.ActionLink("Managing User Accounts", "", "Help", new { id = "?page=account_manageaccounts" }, new AjaxOptions() { UpdateTargetId = "Content3" })%><br />
    <% if (Page.User.IsInRole("Poll Creator") || Page.User.IsInRole("Poll Administrator"))
       { %>
        <%=Ajax.ActionLink("Creating Polls", "", "Help", new { id = "?page=question_editcustom" }, new AjaxOptions() { UpdateTargetId = "Content3" })%><br />  
    <% } %>
    <%=Ajax.ActionLink("Managing Polls", "", "Help", new { id = "?page=poll_index" }, new AjaxOptions() { UpdateTargetId = "Content3" })%><br />    
    <%=Ajax.ActionLink("Administering Polls", "", "Help", new { id = "?page=poll_run" }, new AjaxOptions() { UpdateTargetId = "Content3" })%><br />
    <%=Ajax.ActionLink("Testing Polls", "", "Help", new { id = "?page=poll_test" }, new AjaxOptions() { UpdateTargetId = "Content3" })%><br />
    <%=Ajax.ActionLink("Generating Reports", "", "Help", new { id = "?page=poll_reports" }, new AjaxOptions() { UpdateTargetId = "Content3" })%><br />
      
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">    
    <%Html.RenderPartial(Model.help, Model);%>
</asp:Content>
